﻿<script language=javascript>
function doCommonSearch(pageSize)
{
	SetValue("s_PageNum",1);
	if(typeof pageSize == "undefined"){
		pageSize = 20;
	}
	SetValue("s_Pagesize",pageSize);
	SetAction(list_code);
	frm.target = "_self";
	frm.submit();
}

//上面的翻页
var g_go_check_items = new Array();
var g_go_i = 0 ;

g_go_check_items[g_go_i++] = new CheckItem("跳转页码","i_PageNum",true,false,0,true,CHECK_ITEM_TYPE_INT,1,<%=list.getTotalPage()%>);

function doCommonGo(page_num)
{
	if(page_num!=-1)
	{
		SetValue("s_PageNum",page_num);
	}
	else 
	{
		if(!CheckInput(g_go_check_items)) return false;
		SetValue("s_PageNum",GetValue("i_PageNum"));
	}
	SetAction(list_code);
	frm.target = "_self";
	frm.submit();
}

//下面的翻页
var g_go_check_items2 = new Array();
g_go_i = 0 ;

g_go_check_items2[g_go_i++] = new CheckItem("跳转页码","i_PageNum2",true,false,0,true,CHECK_ITEM_TYPE_INT,1,<%=list.getTotalPage()%>);

function doCommonGo2(page_num)
{
	if(page_num!=-1)
	{
		SetValue("s_PageNum",page_num);
	}
	else 
	{
		if(!CheckInput(g_go_check_items2)) 
		{
			return false;
		}
		SetValue("s_PageNum",GetValue("i_PageNum2"));
	}
	SetAction(list_code);
	frm.submit();
}

</script>

<input type=hidden name="s_PageSize" value="<%=event.getPageSize()%>">
<input type=hidden name="s_PageNum" value="<%=event.getPageNum()%>">
<input type=hidden name="s_OrderField" value="<%=event.getOrderField()%>">
<input type=hidden name="s_OrderDesc" value="<%=event.isOrderDesc()%>">
